﻿using System;
using System.Web.Security;

public partial class Controls_ucUserLogin : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (SessionInfo.prop_getObj.EmployeeID != 0)
        {
            lblUser.Text = " Welcome " + SessionInfo.prop_getObj.EmployeeFullName;
        }
    }

    protected void lnkLogout_Click(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();
        Session.Clear();
        Session.Abandon();
        FormsAuthentication.RedirectToLoginPage();
        Response.Redirect("login.aspx");
    }

}